package com.hhkj.study.admin.user.service.base;

import com.hhkj.study.admin.user.entity.UserExercise;
import com.hhkj.study.admin.user.model.podo.UserExerciseDo;
import com.hhkj.study.admin.user.model.podo.UserExercisePo;
import com.ruoyi.common.base.biz.service.base.BaseService;

import java.util.List;

/**
*
* @author SERVER
* @since 2024-09-06
*/
public interface UserExerciseService extends BaseService<UserExercise, UserExerciseDo, UserExercisePo> {

    /**
     * 根据用户、课程、订单、类型查询学习记录
     * @param userId
     * @param courseId
     * @param orderItemId
     * @param type
     * @return
     */
    List<UserExercise> listByUserCourse(Long userId, Long courseId, Long orderItemId, Long type);
}